﻿<%@ Page Language="C#" MasterPageFile="~/Users/MasterPage.master" AutoEventWireup="true" Inherits="Users_UserManage" Title="Untitled Page" Codebehind="UserManage.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:ScriptManager id="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </div>
    <script src="../Include/JS/PopupCalendar.js"></script>
    <script src="../Include/JS/qq.js"></script>
    <script>
    function Mask()
{ 
    var div_back = document.getElementById("div_background");
    div_back.style.display = "block"; 
    var iframe_back = document.getElementById("iframe_back");
    iframe_back.style.display = "block";
    var cart = document.getElementById("ShoppingCart");
    cart.style.display = "block";
    cart.style.position = "absolute";
    var bigImg = document.getElementById("div_info");
    var pleft = 0;
    var ptop = 0;
   
    var obj = bigImg.offsetParent;
 
    while(obj.tagName != "BODY")
    {
         pleft = pleft + obj.offsetLeft;
         ptop = ptop + obj.offsetTop;
         obj = obj.offsetParent;
    }
    ptop = ptop + 150;
    cart.style.left = pleft +100+ "px";
    cart.style.top = ptop +"px";
    cart.style.width = 300 + "px";
    cart.style.backgroundColor  = "#ffffff";
}
function Hid(result)
{
    var div_back = document.getElementById("div_background");
    div_back.style.display = "none"; 
     var iframe_back = document.getElementById("iframe_back");
    iframe_back.style.display = "none";   
    var cart = document.getElementById("ShoppingCart");
    cart.style.display = "none";
    if(result=="111")   
    {
        alert("保存成功");
    }
    else
    {
        alert("保存失败");
    }
}
function SetValue(obj)
{
    var hid=document.getElementById("ctl00_ContentPlaceHolder1_Hidden1");
    if(hid.value.length>0)
    {
        
        var temp=new Array();   
        temp=hid.value.split('|');    
        var flag=false;
        for(var i=0;i<temp.length;i++)    
        {
            if(temp[i].length>0)
            {               
                if(temp[i].indexOf(obj.id)>-1)
                {
                    if(obj.value!="0")
                    {                      
                       temp[i]=obj.id+","+obj.value;
                    }
                }
                else
                {
                     flag=true;
                }                
            }
        }
        var result="";
        for(var i=0;i<temp.length;i++)
        {
            if(temp[i].length>0)
            {
                result=result+temp[i]+"|";
            }
        }
        if(flag)
        {
            result=result+obj.id+","+obj.value+"|";
        }
        document.getElementById("ctl00_ContentPlaceHolder1_Hidden1").value=result;        
    }
    else
    {        
        if(obj.value!="0")
        {
            hid.value=obj.id+","+obj.value+"|";
        }
    }   
}
</script>
    <div class="r_right">
        <div class="r_title3">
            <h2>
                个人档案</h2>
        </div>       
        <div class="r_kuang1" id="div_info">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" runat="server" id="InfoTable">
                <tr>
                    <td width="140" align="right">
                        性别：</td>
                    <td>
                        <asp:RadioButtonList ID="Sex" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="男">男</asp:ListItem>
                            <asp:ListItem Value="女">女</asp:ListItem>
                        </asp:RadioButtonList></td>
                    <td align="left">
                        </td>
                </tr>
                <tr>
                    <td align="right">
                        用户真实姓名：</td>
                    <td>
                        <input class="inputbox" id="txtRealName" name="txtRealName" runat="server" /></td>
                    <td align="left">
                        </td>
                </tr>
                <tr>
                    <td align="right">
                        生日：</td>
                    <td>
                        <input class="inputbox"  id="txtBirthday" name="txtBirthday"
                            runat="server" onfocusin="getDateString(this,oCalendarChs)"></td>
                    <td align="left">
                        </td>
                </tr>
                <tr style="display:none">
                    <td align="right">
                        身份证：</td>
                    <td>
                        <input class="inputbox" id="txtIdentityNum" size="32" name="txtIdentityNum" runat="server" /></td>
                    <td align="left">
                        </td>
                </tr>
                <tr>
                    <td align="right">
                        居住地省市：</td>
                    <td>
                        <asp:UpdatePanel id="UpdatePanel1" runat="server">
                            <contenttemplate>
<asp:DropDownList id="DropDownList1" runat="server" AppendDataBoundItems="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True"><asp:ListItem>请选择</asp:ListItem>
</asp:DropDownList> <asp:DropDownList id="DropDownList2" runat="server" AppendDataBoundItems="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" AutoPostBack="True"><asp:ListItem>请选择</asp:ListItem>
</asp:DropDownList> <asp:DropDownList id="DropDownList3" runat="server" AppendDataBoundItems="True">
                            <asp:ListItem>请选择</asp:ListItem>
                        </asp:DropDownList> 
</contenttemplate>
                        </asp:UpdatePanel>
                    </td>
                    <td >
                        &nbsp;</td>
                </tr>                
                <tr>
                    <td align="right">
                        居住地详细地址：</td>
                    <td>
                        <asp:TextBox ID="txtaddress" runat="server" Width="200px"></asp:TextBox></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        居住地邮政编码：</td>
                    <td>
                        <input class="inputbox" id="txtPost" size="32" name="txtPost" runat="server"></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        居住地固定电话：</td>
                    <td>                        
                        <input class="inputbox" id="txtTel" name="txtTel" runat="server"></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        手机：</td>
                    <td>                        
                        <input class="inputbox" id="txtMobile" name="txtMobile" runat="server"></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        Email：</td>
                    <td>
                        <input class="inputbox" id="txtEmail" style="width: 150px" maxlength="100" size="5"
                            name="txtEmail" runat="server"></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        婚姻状态：</td>
                    <td>
                        <asp:RadioButtonList ID="ckbmerry" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="001">已婚</asp:ListItem>
                            <asp:ListItem Value="002">未婚</asp:ListItem>
                        </asp:RadioButtonList>   </td>                     
                    <td>
                        &nbsp;</td>
                </tr>
               
                <tr>
                    <td align="right">
                        学历：</td>
                    <td>
                       <asp:DropDownList ID="ddp_edu" runat="server" AppendDataBoundItems="True">
                            <asp:ListItem>请选择</asp:ListItem>
                        </asp:DropDownList></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        职业：</td>
                    <td>
                        <asp:DropDownList ID="ddp_job" runat="server" AppendDataBoundItems="True">
                            <asp:ListItem>请选择</asp:ListItem>
                        </asp:DropDownList></td>
                    <td>
                        &nbsp;</td>
                </tr>                
                <tr>
                    <td align="right">
                        消费水平：</td>
                    <td>
                        <asp:DropDownList ID="ddp_buylevel" runat="server" AppendDataBoundItems="True">
                            <asp:ListItem>请选择</asp:ListItem>
                        </asp:DropDownList></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        购物价位：</td>
                    <td>
                         <asp:DropDownList ID="ddp_buyposition" runat="server" AppendDataBoundItems="True">
                             <asp:ListItem>请选择</asp:ListItem>
                        </asp:DropDownList></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right" style="height: 22px">
                        服饰爱好：</td>
                    <td style="height: 22px">
                         <asp:DropDownList ID="ddp_likestyle" runat="server" AppendDataBoundItems="True">
                             <asp:ListItem>请选择</asp:ListItem>
                        </asp:DropDownList></td>
                    <td style="height: 22px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        了解途径：</td>
                    <td>
                        <asp:RadioButtonList ID="rbt_knowfrom" runat="server" RepeatDirection="Horizontal">
                        </asp:RadioButtonList></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        备注：</td>
                    <td>
                        <asp:TextBox ID="txtbz" runat="server" TextMode="MultiLine"></asp:TextBox></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <input id="Hidden1" type="hidden"  runat="server"/></td>
                </tr>
            </table>
        </div>
        <div class="r_gouwu_button2">
            <ul>
                <li><asp:UpdatePanel id="UpdatePanel2" runat="server">
                            <contenttemplate>
                    <asp:LinkButton ID="Lbtn_Submit" runat="server" OnClick="Lbtn_Submit_Click">保存档案</asp:LinkButton>                             
                </contenttemplate>
                        </asp:UpdatePanel>
                    </li></ul>
        </div>
        
        <div class="r_top_title">
            <a href="#">
                <img src="../images/top.gif" /></a></div>
    </div>
    <div id="div_background" class="divbackground">
    </div>
    <iframe id="iframe_back" class="diviframe" frameborder="0"></iframe>
    <div id="ShoppingCart" style="z-index: 11; display: none">
    </div>
</asp:Content>
